home *** CD-ROM | disk | FTP | other *** search
- /* DrawPoly.c generated from DrawPoly.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "DrawPoly.psw"
- #line 10 "DrawPoly.c"
- void DrawPoly3(float x1, float y1, float x2, float y2, float x3, float y3)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjReal obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjReal obj8;
- DPSBinObjReal obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 13, 108,
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y1 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[2].val.realVal = x1;
- _dpsP[3].val.realVal = y1;
- _dpsP[5].val.realVal = x2;
- _dpsP[6].val.realVal = y2;
- _dpsP[8].val.realVal = x3;
- _dpsP[9].val.realVal = y3;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,108);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 10 "DrawPoly.psw"
-
- #line 65 "DrawPoly.c"
- void DrawPoly3s(float x1, float y1, float x2, float y2, float x3, float y3, float gray)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjReal obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjReal obj8;
- DPSBinObjReal obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 13, 108,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y1 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[2].val.realVal = x1;
- _dpsP[3].val.realVal = y1;
- _dpsP[5].val.realVal = x2;
- _dpsP[6].val.realVal = y2;
- _dpsP[8].val.realVal = x3;
- _dpsP[9].val.realVal = y3;
- _dpsP[0].val.realVal = gray;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,108);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 21 "DrawPoly.psw"
-
- #line 121 "DrawPoly.c"
- void DrawPoly4(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjReal obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjReal obj8;
- DPSBinObjReal obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjReal obj11;
- DPSBinObjReal obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 16, 132,
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y1 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x4 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y4 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[2].val.realVal = x1;
- _dpsP[3].val.realVal = y1;
- _dpsP[5].val.realVal = x2;
- _dpsP[6].val.realVal = y2;
- _dpsP[8].val.realVal = x3;
- _dpsP[9].val.realVal = y3;
- _dpsP[11].val.realVal = x4;
- _dpsP[12].val.realVal = y4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,132);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 34 "DrawPoly.psw"
-
- #line 184 "DrawPoly.c"
- void DrawPoly4s(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float gray)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjReal obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjReal obj8;
- DPSBinObjReal obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjReal obj11;
- DPSBinObjReal obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 16, 132,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: gray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y1 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y3 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: x4 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: y4 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- char pad[3];
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[2].val.realVal = x1;
- _dpsP[3].val.realVal = y1;
- _dpsP[5].val.realVal = x2;
- _dpsP[6].val.realVal = y2;
- _dpsP[8].val.realVal = x3;
- _dpsP[9].val.realVal = y3;
- _dpsP[11].val.realVal = x4;
- _dpsP[12].val.realVal = y4;
- _dpsP[0].val.realVal = gray;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,132);
- if (0) *pad = 0; /* quiets compiler warnings */
- }
- #line 46 "DrawPoly.psw"
-
-
-